# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=glib-networking
pkgver=2.64.3
pkgrel=0
pkgdesc="Networking support for GLib"
url="https://gitlab.gnome.org/GNOME/glib-networking"
arch="all"
license="LGPL-2.0-or-later"
depends="ca-certificates gsettings-desktop-schemas"
makedepends="glib-dev gnutls-dev libproxy-dev intltool libgcrypt-dev bash
	p11-kit-dev meson gsettings-desktop-schemas-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/glib-networking/${pkgver%.*}/glib-networking-$pkgver.tar.xz"

# secfixes:
#   2.64.3-r0:
#     - CVE-2020-13645

build() {
	meson \
		--buildtype=plain \
		--prefix=/usr \
		--default-library=shared \
		. build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
	rm -rf "$pkgdir"/usr/lib/systemd
}

sha512sums="01251f7f95d1c331e883d5ee7857bad0c0d6308991e437ff54ed63e718bb30a12e872755e0611e2bf6ccb2a01c52ba865fe0d94ac69dbab37d74afe063a0590d  glib-networking-2.64.3.tar.xz"
